namespace Test.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("StuInfo")]
    public partial class StuInfo
    {
        public int Id { get; set; }

        [Required]
        [StringLength(10)]
        public string Name { get; set; }

        [Required]
        [StringLength(2)]
        public string Sex { get; set; }

        [Column(TypeName = "text")]
        public string Comment { get; set; }

        public int cid { get; set; }

        public virtual ClassInfo ClassInfo { get; set; }
    }
}
